package com.ruoyi.system.domain;

import com.ruoyi.common.base.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 交易表 wdy_trade
 * 
 * @author ruoyi
 * @date 2020-01-04
 */
public class WdyTrade extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	public static final int STATE_TRADE = 1;
	public static final int STATE_FINISH = 2;
	public static final int STATE_CANCEL = 3;
	/** id */
		private Long id;
	/** 用户id */
		private String userId;
	/** 单价 */
		private BigDecimal price;
	/** vc数量 */
		private BigDecimal vc;
	/** cnn金额 */
		private BigDecimal cnn;
	/** 可交易vc数量 */
		private BigDecimal tradingVc;
	/** 可交易cnn金额 */
		private BigDecimal tradingCnn;
	/** 成交vc数量 */
		private BigDecimal tradedVc;
	/** 成交cnn金额 */
		private BigDecimal tradedCnn;
	/** 交易类型(1买，2卖) */
		private Integer tradeType;
	/** 状态(1可交易，2完成，3已撤销) */
		private Integer tradeState;
	/** 完成时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date finishTime;
	/** 删除标志（0代表存在 1代表删除） */
		private Integer delFlag;
	/** 创建者 */
		private String createBy;
	/** 创建时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date createTime;
	/** 更新者 */
		private String updateBy;
	/** 更新时间 */
	    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
		private Date updateTime;
	/** 备注信息 */
		private String remark;

	public void setId(Long id) 
	{
		this.id = id;
	}

	public Long getId() 
	{
		return id;
	}
	public void setUserId(String userId) 
	{
		this.userId = userId;
	}

	public String getUserId() 
	{
		return userId;
	}
	public void setPrice(BigDecimal price) 
	{
		this.price = price;
	}

	public BigDecimal getPrice() 
	{
		return price;
	}
	public void setVc(BigDecimal vc) 
	{
		this.vc = vc;
	}

	public BigDecimal getVc() 
	{
		return vc;
	}
	public void setCnn(BigDecimal cnn) 
	{
		this.cnn = cnn;
	}

	public BigDecimal getCnn() 
	{
		return cnn;
	}
	public void setTradingVc(BigDecimal tradingVc) 
	{
		this.tradingVc = tradingVc;
	}

	public BigDecimal getTradingVc() 
	{
		return tradingVc;
	}
	public void setTradingCnn(BigDecimal tradingCnn) 
	{
		this.tradingCnn = tradingCnn;
	}

	public BigDecimal getTradingCnn() 
	{
		return tradingCnn;
	}
	public void setTradedVc(BigDecimal tradedVc) 
	{
		this.tradedVc = tradedVc;
	}

	public BigDecimal getTradedVc() 
	{
		return tradedVc;
	}
	public void setTradedCnn(BigDecimal tradedCnn) 
	{
		this.tradedCnn = tradedCnn;
	}

	public BigDecimal getTradedCnn() 
	{
		return tradedCnn;
	}
	public void setTradeType(Integer tradeType) 
	{
		this.tradeType = tradeType;
	}

	public Integer getTradeType() 
	{
		return tradeType;
	}
	public void setTradeState(Integer tradeState) 
	{
		this.tradeState = tradeState;
	}

	public Integer getTradeState() 
	{
		return tradeState;
	}
	public void setFinishTime(Date finishTime) 
	{
		this.finishTime = finishTime;
	}

	public Date getFinishTime() 
	{
		return finishTime;
	}
	public void setDelFlag(Integer delFlag) 
	{
		this.delFlag = delFlag;
	}

	public Integer getDelFlag() 
	{
		return delFlag;
	}
	public void setCreateBy(String createBy) 
	{
		this.createBy = createBy;
	}

	public String getCreateBy() 
	{
		return createBy;
	}
	public void setCreateTime(Date createTime) 
	{
		this.createTime = createTime;
	}

	public Date getCreateTime() 
	{
		return createTime;
	}
	public void setUpdateBy(String updateBy) 
	{
		this.updateBy = updateBy;
	}

	public String getUpdateBy() 
	{
		return updateBy;
	}
	public void setUpdateTime(Date updateTime) 
	{
		this.updateTime = updateTime;
	}

	public Date getUpdateTime() 
	{
		return updateTime;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("price", getPrice())
            .append("vc", getVc())
            .append("cnn", getCnn())
            .append("tradingVc", getTradingVc())
            .append("tradingCnn", getTradingCnn())
            .append("tradedVc", getTradedVc())
            .append("tradedCnn", getTradedCnn())
            .append("tradeType", getTradeType())
            .append("tradeState", getTradeState())
            .append("finishTime", getFinishTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
